﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class travel_hotels_maptest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

        }
    }

    //private String GeocodeAddress(string address)
    //{
    //    string results = "";
    //    string key = "AsqVpWv1Po6MZMJGPFYjsw4OMqyDGnkJZYECtYd40kkjmgKiYe5jj7Hi3z-qbhrl";
    //    GeocodeRequest geocodeRequest = new GeocodeRequest();
    //    geoc

    //    // Set the credentials using a valid Bing Maps key
    //    geocodeRequest.Credentials = new GeocodeService.Credentials();
    //    geocodeRequest.Credentials.ApplicationId = key;

    //    // Set the full address query
    //    geocodeRequest.Query = address;

    //    // Set the options to only return high confidence results 
    //    ConfidenceFilter[] filters = new ConfidenceFilter[1];
    //    filters[0] = new ConfidenceFilter();
    //    filters[0].MinimumConfidence = GeocodeService.Confidence.High;

    //    // Add the filters to the options
    //    GeocodeOptions geocodeOptions = new GeocodeOptions();
    //    geocodeOptions.Filters = filters;
    //    geocodeRequest.Options = geocodeOptions;

    //    // Make the geocode request
    //    GeocodeServiceClient geocodeService = new GeocodeServiceClient();
    //    GeocodeResponse geocodeResponse = geocodeService.Geocode(geocodeRequest);

    //    if (geocodeResponse.Results.Length > 0)
    //        results = String.Format("Latitude: {0}\nLongitude: {1}",
    //          geocodeResponse.Results[0].Locations[0].Latitude,
    //          geocodeResponse.Results[0].Locations[0].Longitude);
    //    else
    //        results = "No Results Found";

    //    return results;
    //}
}
